#include "PacketListener.h"
#include "DNSResponder.h"

class DNSListener : public PacketListener {
  public:
	DNSListener(string* destination, string* device) : PacketListener(destination,device,new string("udp port 53")){
		dnsres = new DNSResponder(destination,device);
		ex_name = new char[MAXHOSTNAMELEN];
	};
	~DNSListener() {
		delete dnsres;
		delete ex_name;
	};
	void packetHandler(const u_char* packet, bpf_u_int32 len);
  protected:
	string* filter;
	DNSResponder* dnsres;
	char* ex_name;
};
